import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import ElementUI from 'element-ui'
import MintUi from 'mint-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'mint-ui/lib/style.css'
import store from './store'
import router from './router'
import { AlertPlugin, ToastPlugin } from 'vux'


axios.defaults.baseURL = 'http://192.168.1.42:8446/api'

axios.defaults.withCredentials = true

// 全局注册，之后可在其他组件中通过 this.$axios 发送数据
Vue.prototype.$axios = axios

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(MintUi)

Vue.use(AlertPlugin)
Vue.use(ToastPlugin)

new Vue({
  router,
  render: h => h(App),
  store
}).$mount('#app')